#ifndef _AllDDIC_H_
#define _AllDDIC_H_

//#include "stm32fxxx.h"
#include  "usbd_cdc.h"
#include "SSD2832.h"
//#include <stdio.h> 
//#include <stdlib.h> 
#include <ctype.h>                      /* Character functions                */
#include "../PUBLIC/Notes.h"

//-----------------------------------------------
#define EE_GMA							0x90
#define HFGenWR				 			0x96    //0x96 for HefeiGEN W/R reg
#define GenWR           	0x99
#define GenWRHFZ            0x9F
#define GenSTM32FSMC2FPGA   0x9D
#define PMU_MTR             0x9E
#define IICWrite_Read       0x9A
//-----------------------------------------------
#define BMP_FLAG						0xBD
#define GEN_FLAG				0xB5

void ProcessForIc99( USBD_HandleTypeDef *pdev,uint8_t  ep_addr,u8 SigMode ,u8 channel,u8 buffer[],u16 LP_B7_Data,u16 HS_B7_Data);

void ProcessForIc96( USBD_HandleTypeDef *pdev,uint8_t  ep_addr,u8 SigMode ,u8 channel,u8 buffer[],u16 LP_B7_Data,u16 HS_B7_Data); //V3通用 读写/批量读写 寄存器
void Generate_Write_Function(USBD_HandleTypeDef *pdev,uint8_t  ep_addr,u8 SigMode ,u8 channel,u8 buffer[],u16 LP_B7_Data,u16 HS_B7_Data);//读写寄存器
void Generate_Read_Function (USBD_HandleTypeDef *pdev,uint8_t  ep_addr,u8 SigMode ,u8 channel,u8 buffer[],u16 LP_B7_Data,u16 HS_B7_Data);//读写寄存器
void HFZGenerate_Write_Function(USBD_HandleTypeDef *pdev,uint8_t  ep_addr,u8 SigMode ,u8 channel,u8 buffer[],u16 LP_B7_Data,u16 HS_B7_Data);//读写寄存器
void HFZGenerate_Read_Function (USBD_HandleTypeDef *pdev,uint8_t  ep_addr,u8 SigMode ,u8 channel,u8 buffer[],u16 LP_B7_Data,u16 HS_B7_Data);//读写寄存器
void GenSTM32FSMC2FPGA_Write_Function(USBD_HandleTypeDef *pdev,uint8_t  ep_addr,u8 SigMode ,u8 channel,u8 buffer[],u16 LP_B7_Data,u16 HS_B7_Data);//读写寄存器
//void GenSTM32FSMC2FPGA_Write_Function(USBD_HandleTypeDef *pdev,uint8_t  ep_addr,u8 SigMode ,u8 channel,u8 buffer[],u16 LP_B7_Data,u16 HS_B7_Data);//读写寄存器



















































































































































































































































































































//--------------------------------------------------------------------------------------
#endif

